
import request from '@/utils/request';

// 查询列表
export async function queryPlainText(params) {
  return request('/b/waterconfig/queryPageList', {
    method: 'POST',
    data: params,
  });
}
// 新增
export async function addPlainText(params) {
  return request('/b/waterconfig/add', {
    method: 'POST',
    data: params,
  });
}

// 删除
export async function removePlainText(params) {
  return request('/b/waterconfig/delete', {
    method: 'POST',
    data: params,
  });
}

// 批量删除
export async function removeAllPlainText(params) {
  return request('/b/waterconfig/delete', {
    method: 'POST',
    data: params,
  });
}

// 修改
export async function updatePlainText(params) {
  return request('/b/waterconfig/update', {
    method: 'POST',
    data: params,
  });
}


// 文件类型列表
export async function queryListByTypeCode(params) {
  return request('/s/datadict/queryListByTypeCode', {
    method: 'POST',
    data: params,
  });
}

// 水印预览
export async function preview(params) {
  return request('/b/waterconfig/preview', {
    method: 'POST',
    data: params,
  });
}
